#include <stdio.h>
#include <math.h>

int main(){
    int a[] = {1,5,8};
    int b[] = {5,9,8};
    int c[3];
    *c = *a;
    *a = *b ;
    *b = *c;
    for (int i = 0; i < 3; i++)
    {
        printf("%d ",a[i]);
    }
    printf("\n");
    for (int i = 0; i < 3; i++)
    {
        printf("%d ",b[i]);
    }
    return 0;
    
}